package be.ipl.eBar.domaine;

import java.io.Serializable;

@SuppressWarnings("serial")
public class LignePK implements Serializable {

	private int biere;
	private int commande;
	
	protected LignePK() {}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + biere;
		result = prime * result + commande;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LignePK other = (LignePK) obj;
		if (biere != other.biere)
			return false;
		if (commande != other.commande)
			return false;
		return true;
	}
	
	
	
}
